package py.edu.ucsa.sisale.access.dao;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;

import py.edu.ucsa.sisale.access.domain.SecurityCode;

@Repository
public class SecurityCodeRepositoryImpl implements SecurityCodeRepository {
    @PersistenceContext
    private EntityManager entityManager;

    public void persist(SecurityCode securityCode){
        entityManager.persist(securityCode);
    }

    public void deleteSecurityCode(SecurityCode securityCode){
        entityManager.remove(securityCode);

    }
}
